package cn.sf.sufingadminconsumer.service;

import cn.sf.pojo.Admin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "sufing-admin-provider")
public interface FoulService {

  @RequestMapping("/selectAllFoulInfo")
  public List<Admin> selectAllFoulInfo();

  @RequestMapping("/selectFoulById")
  public List<Admin> selectFoulById(@RequestParam("adminId") long adminId);

  @RequestMapping("/selectFoulByType")
  public List<Admin> selectFoulByType(@RequestParam("foulType") String foulType);

  @RequestMapping("/insertFoulInfo")
  public int insertFoulInfo(@RequestBody Admin admin);

  @RequestMapping("/updateFoulInfo")
  public int updateFoulInfo(@RequestBody Admin admin);

  @RequestMapping("/deleteFoulInfo")
  public int deleteFoulInfo(@RequestParam("adminUserId") long adminUserId);
}
